//
//  ZLUIDefined.h
//  ZLDefined
//
//  Created by 赵振磊 on 2021/5/24.
//

#ifndef ZLUIDefined_h
#define ZLUIDefined_h

// 屏幕尺寸
#define ZLScreen    ([[UIScreen mainScreen]bounds])
#define ZLSCREENW   ([[UIScreen mainScreen]bounds].size.width)
#define ZLSCREENH   ([[UIScreen mainScreen]bounds].size.height)

// 适配比例
#define ZLFONT_RATIO(a) ((isPad ? (414.0 / 375.0) : (ScreenW / 375) * 1.01) * (a))
#define ZLSCREEN_RATIO(a) (ceil(((isPad ? (414.0 / 375.0) : (ScreenW / 375)) * (a))))

// 图片
#define ZLImg(named) [UIImage imageNamed:named]

#endif /* ZLUIDefined_h */
